{include file="public/header" /}
</head>
<body>
<div class="wrap js-check-wrap">
    <form class="form-horizontal js-ajax-form" method="post" action="{:url('Url/index')}">
        <div class="well form-inline margin-top-20">
            筛选时间:
            <input type="text" class="form-control js-bootstrap-date" name="startDate"
                   value="{$params['startDate']}"
                   style="width: 140px;" autocomplete="off">-
            <input type="text" class="form-control js-bootstrap-date" name="endDate"
                   value="{$params['endDate']}"
                   style="width: 140px;" autocomplete="off">　

            所属用户:
            <input type="text" class="form-control" name="userName" style="width: 200px;"
                   value="{$params['']|default=''}" placeholder="请输入手机号或者邮箱地址">　
            关键词:
            <input type="text" class="form-control" name="keyword"
                   value="{$params['keyword']|default=''}" placeholder="请输入关键词">　
            原始链接:
            <input type="text" class="form-control" name="link"
                   value="{$params['link']|default=''}" placeholder="请输入原始链接">　
            <input type="submit" class="btn btn-primary" value="搜索"/>　
            <a class="btn btn-danger" href="{:url('Url/index')}">清空</a>
        </div>

        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th>ID</th>
                <th>所属用户</th>
                <th>关键词</th>
                <th width="100">原始链接</th>
                <th>点击次数</th>
                <th>限制次数</th>
                <th>密码</th>
                <th>过期时间</th>
                <th>链接类型</th>
                <th>备注</th>
                <th>
                    更新时间<br/>
                    创建时间
                </th>
            </tr>
            </thead>
            {foreach name="list" item="vo"}
            <tr>
                <td>{$vo.urlId}</td>
                <td>{$vo.userName}</td>
                <td>{$vo.keyword}</td>
                <td>{$vo.link}</td>
                <td>{$vo.clicks}</td>
                <td>{$vo.limitClicks}</td>
                <td>{$vo.password}</td>
                <td>{$vo.expireTime}</td>
                <td>
                    {switch $vo.linkType }
                        {case 0}
                            普通链接
                        {/case}
                        {case 1}
                            时间链接
                        {/case}
                        {case 2}
                            私密链接
                        {/case}
                    {/switch}
                </td>
                <td>{$vo.remark}</td>
                <td>
                    {$vo.modifyTime}<br/>
                    {$vo.createTime}
                </td>
            </tr>
            {/foreach}
        </table>
        {:$pagination}
    </form>
</div>
<script src="{$static}js/admin.js"></script>
<script src="{$static}js/layer/layer.js"></script>
</body>
</html>